﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserVisitRecord.aspx.cs" Inherits="nst_param_UserVisitRecord" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户访问记录</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        总数：<asp:Label ID="lblTotal" runat="server"></asp:Label>&nbsp; 显示条数：<asp:DropDownList 
            ID="ddlShowCount" runat="server">
            <asp:ListItem>10</asp:ListItem>
            <asp:ListItem>20</asp:ListItem>
            <asp:ListItem Selected="True">30</asp:ListItem>
            <asp:ListItem>50</asp:ListItem>
            <asp:ListItem>100</asp:ListItem>
        </asp:DropDownList>
        <br />开始Id：<asp:TextBox 
            ID="txtStartId" runat="server" Width="100px"></asp:TextBox>结束Id：<asp:TextBox 
            ID="txtEndId" runat="server" Width="100px"></asp:TextBox><asp:Button 
            ID="ButtonView" runat="server" Text="查询" onclick="ButtonView_Click" />        
        &nbsp;&nbsp;        
        <asp:Button ID="ButtonDelete" runat="server" Text="删除" onclick="ButtonDelete_Click" />
        <asp:Label ID="lblMsg" runat="server" ForeColor="Red"></asp:Label>
        <br />
        
        <asp:RequiredFieldValidator ID="ReqStartId" runat="server" 
            ControlToValidate="txtStartId" ErrorMessage="输入开始Id"></asp:RequiredFieldValidator>
        <asp:RangeValidator ID="RangeStartId" runat="server" 
            ControlToValidate="txtStartId" ErrorMessage="输入数字" MaximumValue="999999999" 
            MinimumValue="1" Type="Integer"></asp:RangeValidator>
            
        <asp:RequiredFieldValidator ID="ReqEndId" runat="server" 
            ControlToValidate="txtEndId" ErrorMessage="输入结束Id"></asp:RequiredFieldValidator>
        <asp:RangeValidator ID="RangeEndId" runat="server" 
            ControlToValidate="txtEndId" ErrorMessage="输入数字" MaximumValue="999999999" 
            MinimumValue="1" Type="Integer"></asp:RangeValidator>
        
        <asp:GridView ID="GridViewVisit" runat="server" AutoGenerateColumns="False">
            <Columns>
                <asp:BoundField DataField="id" HeaderText="id" />                
                <asp:BoundField DataField="ip" HeaderText="ip" />                
                <asp:BoundField DataField="stay" HeaderText="stay" />
                <asp:BoundField DataField="creatTime" HeaderText="creatTime" />
                <asp:BoundField DataField="url" HeaderText="url" />
                <asp:BoundField DataField="refer" HeaderText="refer" />
                <asp:BoundField DataField="agent" HeaderText="agent" />
            </Columns>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
